<template>
  <MyDemo ref="demo" :title="title" :time="time" @changeTitle="changeTitle" @changeTime="changeTime" />
</template>

<script setup name="App">
import { onMounted, ref, watchEffect } from 'vue'
import MyDemo from './components/MyDemo'

const demo = ref(null)
const title = ref('hello')
const time = ref('2023')

const changeTitle = (a) => {
  console.log(a);
}
const changeTime = (a) => {
  console.log(a);
}

</script>

<style>
</style>
